#!/bin/bash
set -e
wget https://archive.apache.org/dist/zookeeper/zookeeper-3.5.8/apache-zookeeper-3.5.8-bin.tar.gz
tar -zxvf apache-zookeeper-3.5.8-bin.tar.gz
cd apache-zookeeper-3.5.8-bin
mkdir data
cp conf/zoo_sample.cfg conf/zoo.cfg
sed -i 's#dataDir=/tmp/zookeeper#dataDir='$(pwd)'/data#' conf/zoo.cfg


-------------------------

#!/bin/bash
set -e
tar -zxvf apache-zookeeper-3.5.8-bin.tar.gz
cd apache-zookeeper-3.5.8-bin
mkdir data
cp conf/zoo_sample.cfg conf/zoo.cfg
sed -i 's#dataDir=/tmp/zookeeper#dataDir='$(pwd)'/data#' conf/zoo.cfg





